package com.usian.admin.service.impl;

import com.usian.admin.feign.WemediaFeign;
import com.usian.admin.service.WemediaNewsAutoScanService;
import com.usian.model.common.dtos.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class WemediaNewsAutoScanServiceImpl implements WemediaNewsAutoScanService {
    @Autowired
    WemediaFeign wemediaFeign;
    @Override
    public void autoScanByMediaNewsId(Integer id) {
        //1.根据id查询文章信息
        ResponseResult news = wemediaFeign.findByIdNews(id);
        //2.判定news的状态
        Object data = news.getData();
    }
}
